home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / send_erq < prev    next >
Text File  |  2001-04-06  |  938b  |  27 lines

  1. SYNOPSIS
  2.         int send_erq(int request, string|int * data, closure callback)
  3.  
  4. DESCRIPTION
  5.         A request of given type ('request', default is 0), equipped
  6.         with the given 'data', is sent to the erq. If 'callback' is
  7.         set to a closure, it will be called when the response from the
  8.         erq (a status code) arrives, if the response carries enough data to
  9.         work on:
  10.           void <closure>(int * response_data, int len)
  11.  
  12.         The data given to send_erq() may be either a string, or an
  13.         array of integers, which are then interpreted as characters.
  14.         The various requests are defined in /sys/erq.h.
  15.  
  16.         The result returned is 0 on failure to send the data, or
  17.         non-zero on a successful send.
  18.  
  19.         The function causes a privilege violation "erq".
  20.  
  21. HISTORY
  22.         Introduced in 3.2.1@61.
  23.         Made a privileged function in 3.2.1@84
  24.  
  25. SEE ALSO
  26.         attach_erq_demon(E), erq(C)
  27.